import 'package:kkhousekeep/generated/json/base/json_convert_content.dart';
import 'package:kkhousekeep/models/room_token_entity.dart';

RoomTokenEntity $RoomTokenEntityFromJson(Map<String, dynamic> json) {
	final RoomTokenEntity roomTokenEntity = RoomTokenEntity();
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		roomTokenEntity.code = code;
	}
	final RoomTokenObj? obj = jsonConvert.convert<RoomTokenObj>(json['obj']);
	if (obj != null) {
		roomTokenEntity.obj = obj;
	}
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		roomTokenEntity.msg = msg;
	}
	return roomTokenEntity;
}

Map<String, dynamic> $RoomTokenEntityToJson(RoomTokenEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['code'] = entity.code;
	data['obj'] = entity.obj.toJson();
	data['msg'] = entity.msg;
	return data;
}

RoomTokenObj $RoomTokenObjFromJson(Map<String, dynamic> json) {
	final RoomTokenObj roomTokenObj = RoomTokenObj();
	final String? token = jsonConvert.convert<String>(json['token']);
	if (token != null) {
		roomTokenObj.token = token;
	}
	return roomTokenObj;
}

Map<String, dynamic> $RoomTokenObjToJson(RoomTokenObj entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['token'] = entity.token;
	return data;
}